package com.qzct.entity.vo;

import lombok.Getter;

@Getter
public enum ResultCode implements StatusCode{
    SUCCESS(200,"请求成功"),
    LOGIN_SUCCESS(200,"登录成功"),





    FAIL(0,"请求失败"),
    CUSTOM_ERROR(3,"自定义异常"),
    NO_DATA_ERROR(2,"no data"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    RESPONSE_PACK_ERROR(1003, "response返回包装失败"),
    APP_ERROR(2000, "业务异常"),
    USER_LOGIN_OK(2001,"用户登录成功"),
    USER_LOGIN_ERROR(2002,"用户登录失败"),
    LOGIN_NAME_IS_REPEAT(2003,"账号已存在，请直接登陆"),
    USER_REGISTER_OK(2004,"用户注册成功"),
    USER_REGISTER_FAILURE(2005,"用户注册失败"),
    USER_LOGIN_NAME_NOT_EXIST(2006,"账号不存在或密码错误，请核查"),
    USER_TOKEN_UPDATE_FAILURE(2007,"用户Token更新失败，重新登陆"),
    USER_TOKEN_VERIFY_DATE_FAILURE(2008,"TOKEN时间失效，重新登陆"),
    USER_TOKEN_VERIFY_FAILURE(2009,"TOKEN验证失败，重新登陆"),
    VERIFY_CODE_FAILURE(2010,"输入验证码错误，重新输入"),
    FILE_UPLOAD_SUCCESS(2011,"文件上传成功"),
    FILE_UPLOAD_FAILED(2012,"文件上传失败"),
    USER_FORGET_SUCCESS(2005,"用户重置密码成功"),
    USER_FORGET_FAILURE(2005,"用户重置密码失败"),
    USER_LIKE_COU_ERROR(3001,"用户已经点赞过此古厝，不能重复点赞。"),
    USER_NOT_LIKE_COU_ERROR(3002,"用户未点赞此古厝，无法取消点赞。"),
    USER_LIKE_COU_SUCCESS(3003,"点赞成功！"),
    USER_NOT_LIKE_COU_SUCCESS(3004,"取消点赞成功！"),
    USER_FAVORITES_COU_ERROR(3005,"用户已经收藏过此古厝，不能重复收藏。"),
    USER_NOT_FAVORITES_COU_ERROR(3006,"用户未收藏此古厝，无法取消收藏。"),
    USER_FAVORITES_COU_SUCCESS(3007,"收藏成功！"),
    USER_NOT_FAVORITES_COU_SUCCESS(3008,"取消收藏成功！"),
    USER_NO_FAVORITES_FOUND(3009, "获取用户收藏列表失败"),
    USER_FAVORITES_FETCH_SUCCESS(3010,"获取用户收藏列表成功" ),
    NO_FAVORITES_FOUND(3011, "获取用户所有收藏列表失败"),
    FAVORITES_FETCH_SUCCESS(3012,"获取用户所有收藏列表成功" ),
    USER_NO_LIKES_FOUND(3013,"获取用户所有点赞列表失败" ),
    USER_LIKES_FETCH_SUCCESS(3014,"获取用户所有点赞列表成功" ),
    NO_LIKES_FOUND(3015, "获取所有点赞列表失败" ),
    LIKES_FETCH_SUCCESS(3016, "获取所有点赞列表成功" ),
    CUISINE_DATA_OK(3017, "检索美食名称及其类别成功" ),
    COU_DATA_OK(3018, "检索相关建筑物成功" ),
    EXCEPTION_ERROR(5000,"系统内部错误，请联系管理员"),
    FILE_UPLOAD_ERROR(2021,"文件上传失败"),
    NO_IMAGECATE_FOUND(8000, "获取图片类别失败"),
    IMAGECATE_FETCH_SUCCESS(8001,"获取图片类别成功" ),
    NO_IAMGELIST_FOUND(8002, "获取图片列表失败"),
    IAMGELIST_FETCH_SUCCESS(8003,"获取图片列表成功" );


    private  int code;

    private String msg;



    ResultCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }


}
